package com.wman.learn.basic

/**
 * @ProjectName: wman
 * @Package: com.wman
 * @ClassName: Test
 * @Description: 没有封装类、空类型、没有静态变量和静态方法
 * @Author: wman
 * @CreateDate: 2019/11/13 15:04
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/11/13 15:04
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */

//kotlin中实现一个即可
class testInterface : JavaBasic.BaseInterface {
    override fun putNumber(number: Int) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }
    //通过反射才能调用到Integer
}

fun testFormat(str: String) {
    val str1 = JavaBasic.format(str)
//    val str2: String = Test.format(str)//报错
    val str3: String? = JavaBasic.format(str)

//    println(str1.length)//报错
    println(str3?.length)
}

fun main(args: Array<String>) {
    JavaBasic.sBaseInterface.putNumber(100)

    testFormat("")
}

